package design.pattern.factory.simpleFactory;

/**
 * @program: designPattern
 * @description: 简单工厂测试
 * @author: dong.chang
 * @create: 2021-04-22 10:40
 **/
public class SimpleFactoryTest {
    public static void main(String[] args) {

        IceCream appleIceCream = IceCreamFactory.creatIceCream("Apple");
        appleIceCream.taste();

        IceCream bananaIceCream = IceCreamFactory.creatIceCream("Banana");
        bananaIceCream.taste();

        IceCream orangeIceCream = IceCreamFactory.creatIceCream("Orange");
        orangeIceCream.taste();

    }
}
